package com.ecoolex.hotel.saas.core.mapper;

import com.ecoolex.framework.common.annotation.Description;
import com.ecoolex.hotel.saas.entity.PresaleCouponOrderDetail;
import com.ecoolex.hotel.saas.entity.PresaleCouponOrderDetailExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.lang.NonNull;

public interface PresaleCouponOrderDetailMapper {
    long countByExample(PresaleCouponOrderDetailExample example);

    int deleteByExample(PresaleCouponOrderDetailExample example);

    int deleteByPrimaryKey(Integer detailId);

    int insert(PresaleCouponOrderDetail record);

    int insertSelective(@Param("record") PresaleCouponOrderDetail record, @Param("selective") PresaleCouponOrderDetail.Column ... selective);

    PresaleCouponOrderDetail selectOneByExample(PresaleCouponOrderDetailExample example);

    List<PresaleCouponOrderDetail> selectByExample(PresaleCouponOrderDetailExample example);

    PresaleCouponOrderDetail selectByPrimaryKey(Integer detailId);

    PresaleCouponOrderDetail selectByPrimaryKeyWithLogicalDelete(@Param("detailId") Integer detailId, @Param("andLogicalDeleted") boolean andLogicalDeleted);

    int updateByExampleSelective(@Param("record") PresaleCouponOrderDetail record, @Param("example") PresaleCouponOrderDetailExample example, @Param("selective") PresaleCouponOrderDetail.Column ... selective);

    int updateByExample(@Param("record") PresaleCouponOrderDetail record, @Param("example") PresaleCouponOrderDetailExample example);

    int updateByPrimaryKeySelective(@Param("record") PresaleCouponOrderDetail record, @Param("selective") PresaleCouponOrderDetail.Column ... selective);

    int updateByPrimaryKey(PresaleCouponOrderDetail record);

    int batchInsert(@Param("list") List<PresaleCouponOrderDetail> list);

    int batchInsertSelective(@Param("list") List<PresaleCouponOrderDetail> list, @Param("selective") PresaleCouponOrderDetail.Column ... selective);

    int logicalDeleteByExample(@Param("example") PresaleCouponOrderDetailExample example);

    int logicalDeleteByPrimaryKey(Integer detailId);
}